package com.ls.thread.ch05;

public class TicketRunnableTest {

	public static void main(String[] args) {
		TicketRunnable t = new TicketRunnable(10);
		
		Thread t01 = new Thread(t);
		Thread t02 = new Thread(t);
		Thread t03 = new Thread(t);
		
		t01.setName("窗口1");
		t02.setName("窗口2");
		t03.setName("窗口3");
		
		t01.start();
		t02.start();
		t03.start();
		
	}
}
